//
//  PANavigationBarController.swift
//  PersonalApp
//
//  Created by yuchanglin on 2017/12/7.
//  Copyright © 2017年 yuchanglin. All rights reserved.
//

import UIKit

class PANavigationBarController: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        if viewControllers.count > 0 {
            viewController.hidesBottomBarWhenPushed = true
        }
       super.pushViewController(viewController, animated: animated)
    }

}
